package com.tj.test.sys.tool;
/*返回值的格式内容*/
public class ResponseMessage<T> {
    private String respCode;
    private String resMsg;
    private T data;
    private boolean ok;

    public ResponseMessage(String respCode, String resMsg) {
        this.respCode = respCode;
        this.resMsg = resMsg;
    }

    public ResponseMessage(String respCode, String resMsg, boolean ok) {
        this.respCode = respCode;
        this.resMsg = resMsg;
        this.ok = ok;
    }

    public ResponseMessage(String respCode, String resMsg, T data, boolean ok) {
        this.respCode = respCode;
        this.resMsg = resMsg;
        this.data = data;
        this.ok = ok;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getResMsg() {
        return resMsg;
    }

    public void setResMsg(String resMsg) {
        this.resMsg = resMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }
}
